package com.hrm.dao;

import com.hrm.entity.DepartmentEntity;

import java.util.List;

/**
 * Create by zekdot on 20-3-8.
 */
public class DepartmentDao extends BaseDao<DepartmentEntity> {
    /**
     * 根据部门名称获取职位列表
     * @return
     */
    public List<DepartmentEntity> getDepList() throws Exception {

        String sql = "SELECT * FROM department";
        return queryList(sql,null);
    }
}
